package com.pms.framework;

import java.util.ArrayList;

public class MenuBuild {
    protected int menuId;

    protected ArrayList submenu = new ArrayList();
    
    protected String name;
    protected String link;
    protected String target;
    
    protected int length; //submenu length
    protected int height;
    protected int width;

    public MenuBuild(String name,String link,String target,int length, int height,int width) 
    {
    	this.name=name;
    	this.link=link;
    	this.target=target;
    	this.length=length;
    	this.height=height;
    	this.width=width;
    }
    
    public int getMenuId() {
        return menuId;
    }
    public int getLength() {
        return length;
    }
    public int getWidth() {
        return width;
    }
    public long getHeight() {
        return height;
    }
    public String getName() {
        return name;
    }
    public String getLink() {
        return link;
    }
    public String getTarget() {
        return target;
    }
    public ArrayList getSubmenu() {
        return submenu;
    }

    
    public void setMenuId(int menuId) {
        this.menuId=menuId;
    }
    public void setHeight(int height) {
        this.height=height;
    }
    public void setLength(int length) {
        this.length=length;
    }
    public void setWidth(int width) {
        this.width=width;
    }
    public void setTarget( String target ) {
    	this.target=target;
    }
    public void setLink( String link ) {
    	this.link=link;
    }
    public void setName( String name ) {
    	this.name=name;
    }
    public void setSubmenu(ArrayList subMenu) {
    	
    }
// ----------------------------------------------------------------------
    public void addMenu(MenuBuild subMenu1)
    {	
    	this.submenu.add(subMenu1);
    }
}    


